package com.lee9213.mybatis.plugin;

import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.dom.java.Interface;
import org.mybatis.generator.api.dom.java.TopLevelClass;

import java.util.List;

/**
 * service生成器
 *
 * @author lee9213@163.com
 * @version 1.0
 * @date 2017/3/30 12:24
 */
public class ServicePlugin extends PluginAdapter {


    @Override
    public boolean clientGenerated(Interface interfaze, TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
        try{
            String base_package = getProperties().getProperty("base.package") + ".service";
            String type = introspectedTable.getBaseRecordType();
            String parentService = getProperties().getProperty("services");


        }catch (Exception e){
            e.printStackTrace();
        }
        return true;
    }

    @Override
    public boolean validate(List<String> list) {
        return false;
    }
}
